
#ifndef PROXIMITY_SENSOR_H
#define PROXIMITY_SENSOR_H

#include "Nano100Series.h"

#define PROXIMITY_SENSOR_INI_PORT	PA
#define PROXIMITY_SENSOR_INI_BIT	BIT13
#define PROXIMITY_SENSOR_INI_PIN	PA13

enum proximity_sensor_state_t {
	PROXIMITY_SENSOR_STATE_LEAVE = 0,
	PROXIMITY_SENSOR_STATE_CLOSE,
};

void ProximitySensorInit(void);
void ProximitySensorUpdateState(void);
enum proximity_sensor_state_t ProximitySensorGetState(void);

#endif

